﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/RightFrame.Master"
    CodeBehind="ManualSignSearch.aspx.cs" Inherits="MyOA.UI.ManualSign.ManualSignSearch" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    当前位置：员工考勤历史记录查询
         <style>
            .headBackground
            {
            	
             background-image:url("../../images/tab_14.gif");
            }
      </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContnent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"
                charset="gb2312"></script>

            <div style="text-align: center">
                <b>员 工 考 勤 历 史 记 录 查&nbsp; 询</b></div>
            <table class="GBText" cellspacing="0" cellpadding="0" width="95%" datapagesize="56">
                <tr>
                    <td colspan="2">
                        <table>
                            <tbody>
                                <tr>
                                    <td style="width: 91px; height: 39px" align="center">
                                        输入时间段：
                                    </td>
                                    <td style="height: 39px">
                                        &nbsp;&nbsp;开始时间:
                                        <asp:TextBox ID="txtBeginTime" onfocus="new WdatePicker(this,'%Y-%M-%D',true,'whyGreen')"
                                            runat="server" Width="141px" CssClass="Wdate"></asp:TextBox>&nbsp;* -----&nbsp;
                                        结束时间:
                                        <asp:TextBox ID="txtEndTime" onfocus="new WdatePicker(this,'%Y-%M-%D',true,'whyGreen')"
                                            runat="server" Width="149px" CssClass="Wdate"></asp:TextBox>&nbsp;*&nbsp;&nbsp;
                                        <asp:CompareValidator ID="cvTime" runat="server" ControlToCompare="txtBeginTime"
                                            ErrorMessage="结束时间不应小于开始时间" Operator="GreaterThanEqual" ControlToValidate="txtEndTime"
                                            Display="Dynamic"></asp:CompareValidator>&nbsp;&nbsp;&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="middle" align="center" colspan="2" height="5">
                                        <hr width="95%" color="gray" size="1" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 81px" valign="middle" align="right">
                                        <asp:Image ID="img1" runat="server" ImageUrl="~/images/search2.gif"></asp:Image>查找范围：
                                    </td>
                                    <td valign="middle" align="left">
                                        <asp:CheckBoxList Style="position: relative; top: 0px; left: 0px; width: 392px;"
                                            ID="chklstSelect" runat="server" RepeatColumns="5" AutoPostBack="True" OnSelectedIndexChanged="chklstSelect_SelectedIndexChanged">
                                            <asp:ListItem Value="branch">按机构</asp:ListItem>
                                            <asp:ListItem Value="depart">按部门</asp:ListItem>
                                            <asp:ListItem Value="userid">按员工号</asp:ListItem>
                                            <asp:ListItem Value="username">按姓名</asp:ListItem>
                                        </asp:CheckBoxList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" height="5">
                                        <hr width="95%" color="gray" size="1" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机构:
                                        <asp:DropDownList ID="ddlBranchs" runat="server" Width="160px" CssClass="ddlCss"
                                            AutoPostBack="True">
                                            <asp:ListItem>==请选择==</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp; 部门:
                                        <asp:DropDownList ID="ddlDeparts" runat="server" Width="184px" CssClass="ddlCss">
                                            <asp:ListItem>==请选择==</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp; 员工号:
                                        <asp:TextBox ID="txtLoginId" runat="server" Width="91px" Enabled="False" CssClass="inputCss"
                                            Columns="10"></asp:TextBox>
                                        &nbsp; 姓名:
                                        <asp:TextBox ID="txtUserName" runat="server" Width="110px" Enabled="False" CssClass="inputCss"
                                            Columns="10"></asp:TextBox><br />
                                        <br />
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:ImageButton ID="imgbtnSearch" runat="server" Height="21px" Width="23px" ImageUrl="~/images/search.gif"
                                            OnClick="imgbtnSearch_Click"></asp:ImageButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 100%" valign="top" align="center" width="90%" colspan="2">
                                        <asp:GridView ID="gvUserSignInfo" runat="server" Width="96%" BorderColor="#66CCFF" BorderWidth="1px" CellPadding="8" AutoGenerateColumns="False"
                                             PageSize="6" ForeColor="#333333" GridLines="None">
                                           
                                            <Columns>
                                                <asp:TemplateField HeaderText="签到员工"  HeaderStyle-CssClass="headBackground">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("user.username") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("user.username") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="signtime" HeaderText="签卡时间"  HeaderStyle-CssClass="headBackground"></asp:BoundField>
                                                <asp:BoundField DataField="signtag" HeaderText="签卡标记"  HeaderStyle-CssClass="headBackground"></asp:BoundField>
                                                <asp:BoundField DataField="signdesc" HeaderText="签卡备注"  HeaderStyle-CssClass="headBackground"></asp:BoundField>
                                                <asp:TemplateField HeaderText="所属部门"  HeaderStyle-CssClass="headBackground">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("user.depart.departName") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("user.depart.departName") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="所属机构"  HeaderStyle-CssClass="headBackground">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("user.depart.branch.branchName") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("user.depart.branch.branchName") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            
                                        </asp:GridView>
                                        <webdiyer:AspNetPager ID="anpDepartInfo" runat="server" OnPageChanged="anpDepartInfo_PageChanged"
                PagingButtonSpacing="10px" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" PageSize="5" ShowNavigationToolTip="True" NavigationToolTipTextFormatString="转到第{0}页"
                        CssClass="paginator"  CurrentPageButtonClass="cpb">
                </webdiyer:AspNetPager>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
